<?php

if (isset($_COOKIE["userType"]))
{
    echo "Welcome ";
    echo $_COOKIE["firstName"];
    echo "<body class='logout'> <a href='logout.php'>Log-Out</a></body>";
}
else
{
     echo"'<script>document.location.href='index.php'</script>'";
}
   
?>

